package com.liang.threaddemo9;

import java.util.concurrent.ArrayBlockingQueue;

public class Text {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> list = new ArrayBlockingQueue<>(1);

        list.put("汉堡包");
        list.put("汉堡包");
        list.put("汉堡包");

        String take = list.take();
        System.out.println(take);
    }
}

